package com.wsp.controllermanagement.pojo.vo;

import com.wsp.controllermanagement.validation.ValidationGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Package: com.wsp.controllermanagement.pojo.vo
 * Description： TODO
 *
 * @Author: 巫思平
 * Copyright: Copyright (c) 2020
 * Version: 1
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "管理员交互参数校验")
public class AdminViewVo {

    @ApiModelProperty("圈子（模块）名")
    @NotBlank(groups = {ValidationGroup.SourceGroup.class, ValidationGroup.ModuleGroup.class})
    private String moduleName;

    @ApiModelProperty("资源标题")
    @NotBlank(groups = ValidationGroup.SourceGroup.class)
    private String sourceTitle;

    @ApiModelProperty("视频/图片/文件")
    @NotNull(groups = ValidationGroup.FileGroup.class)
    private MultipartFile file;


    @ApiModelProperty("资源id")
    @NotNull(groups = ValidationGroup.CoverGroup.class)
    private Long sourceId;

}
